//
//  CustomPlayerViewController.h
//  CapriceMusic
//
//  Created by 蒋恩浩 on 16/1/9.
//  Copyright © 2016年 MYX. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol synchroPlayAndPlayControl <NSObject>

- (void)progressBarValue:(float)currentValue withIsPlay:(NSInteger)flag;

@end

@interface CustomPlayerViewController : UIViewController

// url
@property (nonatomic, copy) NSString *urlString;
// 当前播放位置
@property (nonatomic, assign) float currentValue;
// 视频总时间
@property (nonatomic, assign) NSInteger videoTimes;
// 开始暂停标记
@property (nonatomic, assign) NSInteger playControlFlag;
// 标题
@property (nonatomic, copy) NSString *title;
// 是否本地视频
@property (nonatomic, assign) BOOL isLocal;
// 本地视频地址
@property (nonatomic, copy) NSString *filePath;

@property (nonatomic, assign) id<synchroPlayAndPlayControl>delegate;

//+ (instancetype)shareSinglePlayerViewController;

- (void)createPlayerView;
- (void)localVideoPlayer;

@end
